package com.bjbn.service.impl;

import com.bjbn.mapper.OrganizeMapper;
import com.bjbn.entity.Organize;
import com.bjbn.service.OrganizeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrganizeServiceImpl implements OrganizeService {

    @Autowired
    private OrganizeMapper organizeMapper;

    @Override
    public List<Organize> getAllOrganize(){
        return organizeMapper.selectList(null);
    }

    @Override
    public Organize getItemById(String id){
        return organizeMapper.selectById(id);
    }
}
